﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Vehicles_Edit.aspx.cs" Inherits="Vehicle.Web.Pages.Vehicles.Vehicles_Edit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>物流管理系统</title>
    <link href="../../Style/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td width="17" valign="top" background="../../Images/mail_leftbg.gif"><img src="../../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../Images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">车辆维护</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../images/mail_rightbg.gif"><img src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="../../images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="left_txt">当前位置：车辆管理--<a href="Main.aspx">车辆信息维护</a> --编辑车辆信息</td>
          </tr>
          <tr>
            <td height="20"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
              <tr>
                <td></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="10%" height="55" valign="middle"><img src="../../images/user-info.gif" width="54" height="55"></td>
                <td width="90%" valign="top"><span class="left_txt2">在这里，您可以根据您的业务要求，编辑车辆信息！</span><br /> <span class="left_txt3">只有原驾驶员退车之后该车才可以进行更换车队或驾驶员</span></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
              <tr>
                <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;车辆信息填写</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
              
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">所属车队：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                    <asp:DropDownList ID="drop_M_ID" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="drop_M_ID_SelectedIndexChanged" >
                    </asp:DropDownList>
                </td>
                <td width="45%" height="30"  class="left_txt">请选择该车辆所属的车队名称</td>
              </tr>
              <tr>
                <td height="30" align="right" class="left_txt2">车辆驾驶员：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2"><asp:DropDownList ID="drop_P_ID" runat="server" >
                    </asp:DropDownList>
                </td>
                <td height="30" class="left_txt">请选择该车辆的驾驶员</td>
              </tr>
                <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">车辆编号：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_Num" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="REV_V_Num" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_Unit" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator><asp:RequiredFieldValidator ID="RFV_V_Num" runat="server" ErrorMessage="不能为空!" ControlToValidate="txt_V_Num" Display="Dynamic"></asp:RequiredFieldValidator></td>
                <td width="45%" height="30"  class="left_txt">按需求进行车辆入库编号（不能为空)</td>
              </tr>
                 <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">车辆路线：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_Route" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="REV_V_Route" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_Route" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">车辆行走路线(如: 北京到上海)</td>
              </tr>
              <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">车牌号：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_LicenseNum" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RFV_V_LicenseNum" runat="server" ErrorMessage="不能为空!" ControlToValidate="txt_V_LicenseNum" Display="Dynamic"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="REV_V_LicenseNum" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_LicenseNum" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">车牌号(不能为空)</td>
              </tr>
              <tr>
                <td height="30" align="right" class="left_txt2">车辆所属省市：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2"><asp:TextBox ID="txt_V_ProvinceCity" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RFV_V_ProvinceCity" runat="server" ErrorMessage="不能为空!" ControlToValidate="txt_V_ProvinceCity" Display="Dynamic"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="REV_V_ProvinceCity" runat="server" ErrorMessage="只能输入中文!" ControlToValidate="txt_V_ProvinceCity" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5]+$"></asp:RegularExpressionValidator></td>
                <td height="30" class="left_txt">输入车辆所属省市（不能为空,只能为中文）</td>
              </tr>
                <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">车辆长度：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_Length" runat="server"></asp:TextBox>米<asp:RegularExpressionValidator ID="REV_V_Length" runat="server" ErrorMessage="只能输入数字与小数点" ControlToValidate="txt_V_Length" Display="Dynamic" ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">车辆长度</td>
              </tr>
              <tr>
                <td height="30" align="right" class="left_txt2">车辆载重：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2"><asp:TextBox ID="txt_V_Load" runat="server"></asp:TextBox>吨<asp:RegularExpressionValidator ID="REV_V_Load" runat="server" ErrorMessage="只能输入数字与小数点" ControlToValidate="txt_V_Load" Display="Dynamic" ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator></td>
                <td height="30" class="left_txt">车辆载重</td>
              </tr>
                <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">车型：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_Model" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="REV_V_Model" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_Model" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">车型</td>
              </tr>
             <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">出厂编号：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_MNumber" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_MNumber" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">出厂编号</td>
              </tr>     <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">出厂日期：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                <cc1:GMDatePicker ID="Gmdp_V_ReleaseDate" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null" CalendarWidth="200px" EnableViewState="False" 
                        DisplayMode="Label">
                    </cc1:GMDatePicker></td>
                <td width="45%" height="30"  class="left_txt">车辆出厂日期</td>
              </tr>  
                 <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">购买日期：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                 <cc1:GMDatePicker ID="Gmdp_V_BuyDate" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null" CalendarWidth="200px" EnableViewState="False" 
                        DisplayMode="Label">
                    </cc1:GMDatePicker></td>
                <td width="45%" height="30"  class="left_txt">车辆购买日期</td>
              </tr>     <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">燃料种类：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_Fuel" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_Fuel" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">车辆燃料种类（如汽油、柴油）</td>
              </tr>     <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">排放标准：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_Let" runat="server"></asp:TextBox>g/km<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_Let" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">车辆排放标准</td>
              </tr>     <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">生产厂家：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_Manufacturer" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_Manufacturer" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">生产厂家</td>
              </tr>     <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">颜色：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_Color" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_Color" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">车辆颜色</td>
              </tr>
            
              <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">车辆保险单位：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_V_Unit" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="REV_V_Unit" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_V_Unit" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">车辆所投保的单位名称</td>
              </tr>
              <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">车辆到期时间：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"> <cc1:GMDatePicker ID="Gmdp_V_ETiem" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null" CalendarWidth="200px" EnableViewState="False" 
                        DisplayMode="Label">
                    </cc1:GMDatePicker></td>
                <td width="45%" height="30"  class="left_txt">车辆到期时间</td>
              </tr>
              <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">车辆入录时间：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                    <asp:TextBox ID="txt_V_Time" runat="server" Enabled="false"></asp:TextBox></td>
                <td width="45%" height="30"  class="left_txt">车辆入录时间(不能修改)</td>
              </tr>
               <tr>
                <td height="30" align="right" class="left_txt2">是否有承运任务：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2">
                    <asp:DropDownList ID="drop_V_Transit" runat="server" Width="68px">
                    <asp:ListItem Text="是" Value="1"></asp:ListItem>
                      <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td height="30" class="left_txt">程序会依据车俩当前情况进行判定,如无特殊需要请勿修改!</td>
              </tr>
              <tr>
                <td height="30" align="right"  class="left_txt2">车辆备注：</td>
                <td >&nbsp;</td>
                <td height="30" >
                    <asp:TextBox ID="txt_V_Note" runat="server" TextMode="MultiLine" Height="135px" 
                        Width="230px"></asp:TextBox></td>
                <td height="30"  class="left_txt">车辆的备注信息</td>
              </tr>
                </table>  </ContentTemplate>
                </asp:UpdatePanel>
		</td>
              </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">     
            <tr>
              <td height="30" colspan="3" align="center" class="left_txt4">&nbsp;<asp:HiddenField ID="hf_Set" runat="server" Value="1" />
                 <asp:HiddenField ID="hf_P_ID" runat="server" /> <asp:HiddenField ID="hf_V_LastTime" runat="server" /><asp:HiddenField ID="hf_V_LicenseNum" runat="server" /><div visible="false" runat="server" id="d_Show" >车辆信息已经修改是否需要刷新数据?<a href="#" onclick="javascript:window.location.href = window.location.href;">点击刷新</a>&nbsp;&nbsp;(点击添加按钮执行当前编辑)</div></td>
            </tr>
            <tr>
              <td width="50%" height="30" align="right"><asp:Button ID="btn_Add" runat="server" 
                      Text="修改" onclick="btn_Add_Click" /></td>
              <td width="6%" height="30" align="right">&nbsp;</td>
              <td width="44%" height="30"><input type="reset" value="重置" name="B12" /></td>
            </tr>
          </table></td>
      </tr>
    </table></td>
    <td background="../../images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="../../images/mail_leftbg.gif"><img src="../../images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="../../images/buttom_bgs.gif"><img src="../../images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="../../images/mail_rightbg.gif"><img src="../../images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
    </form>
</body>
</html>

